package com.wang.serviceconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "provide")
public interface ProviderClientService {

//    @GetMapping("/hi")
//    String test(@RequestParam("name") String name);

    @GetMapping("/provider/hi2/{name}")
    String test(@PathVariable("name") String name);

}
